{% extends 'base/layout.html' %}


{% block content_header %}
  {% include 'widget/header.html' %}
{% endblock %}


{% block content_main_before %}
{% endblock %}


{% block content_main %}
  <div class="row">

    <div class="col-lg-10 col-md-9">

      {% include '../widget/page_content.html' %}

      {# force remove #revision-toc from #content_main of parent #}
      <script>
        $('#revision-toc').remove();
      </script>

    </div> {# /.col- #}

    {# relocate #revision-toc #}
    <div class="col-lg-2 col-md-3 revision-toc-container hidden-sm hidden-xs">
      {% include './widget/liker-and-seenusers.html' %}
      <div id="revision-toc" class="revision-toc mt-3" data-spy="affix" data-offset-top="123">
        <div id="revision-toc-content" class="revision-toc-content"></div>
      </div>
    </div> {# /.col- #}

  </div>

  <div class="row page-list hidden-print {% if page.isPortal() %}m-t-30{% endif %}">
    <div class="col-md-10">
      {% include '../widget/page_list_and_timeline.html' %}
    </div>
  </div>
{% endblock %}


{% block content_footer %}
  {% if page %}
    {% include '../widget/page_attachments.html' %}
  {% endif %}
{% endblock %}


{% block body_end %}
  <div id="presentation-layer" class="fullscreen-layer">
    <div id="presentation-container"></div>
  </div>
  <div id="crowi-modals">
    {% include '../widget/page_modals.html' %}
    {% include '../modal/what_is_portal.html' %}
    {% include '../modal/unportalize.html' %}
  </div>
{% endblock %}
